<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:77:"D:\phpstudy_pro\WWW\demo\public/../application/admin\view\category\index.html";i:1579315296;}*/ ?>
﻿<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href="/static/admin/Css/public.css" rel="stylesheet" type="text/css" />
<title>文章分类管理</title>
</head>

<body>
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" class="border">
	<tr class="topbg"><td>文章分类管理</td></tr>
	<tr class="tdbg">
		<td height="30">&nbsp;&nbsp;
			<a href="<?php echo url('admin/category/index'); ?>">管理首页</a>&nbsp;|&nbsp;
			<a href="<?php echo url('admin/category/add'); ?>">添加文章分类</a>
		</td>
	</tr>
</table>
<br />
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="border">
<tr class="title" align="center">
	<td>列表</td>
	<td>分类名称</td>
	<td>排序</td>
	<td>文章数量</td>
	<td>操作选项</td>
</tr>
<?php foreach($data as $k=>$v): ?>
	<tr class="tdbg" align="left">
		<td><?php echo ++$k; ?></td>
		<td>
			<?php echo str_repeat('--',$v->level*2); ?>
			<?php echo $v['classname']; ?>
		</td>
		<td>50</td>
		<td>350</td>
		<td>
			<a href="<?php echo url('admin/category/edit',['id'=>$v['id']]); ?>">修改</a> |


			<a href="javascript:void(0);" onclick="if(confirm('您确定要删除吗'))
				location.href = '<?php echo url('admin/category/delete',['id'=> $v['id']]); ?>'">删除</a>
		</td>
	</tr>
<?php endforeach; ?>
</table>
</body>
</html>